<a href="/admin/pages/visit">Просмотры страниц</a>
<br>
<?//=printr($visit)?>

<table>
	<tr>
		<th>Время</th>
		<th>Пользователь</th>
		<th>IP</th>
		<th>Реферер</th>
	</tr>
<? foreach ($visit as $val):?>
	<tr>
		<td>
			<?=printDate($val->dCreated, true)?>
		</td>
		<td>
			<?=isset($users[$val->tUser])?'<a href="/admin/users/edit/'.$val->tUser.'">'.$users[$val->tUser].'</a>':'--'?>
		</td>
		<td>
			<?=($val->pIP)?>
		</td>
		<td>
			<a href="<?=($val->pReferer)?>"><?=($val->pReferer)?></a>
		</td>
	</tr>
<? endforeach; ?>
</table>